package com.easy.dao;

import com.easy.bean.Receiveraddress;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ReceiveraddressDao {
    int addReceiveraddress(@Param("receiveraddress") Receiveraddress receiveraddress);
    int editReceiveraddress(@Param("receiveraddress") Receiveraddress receiveraddress);
    int deleteReceiveraddress(@Param("id") int id);
    List<Receiveraddress> selectReceiveraddress(@Param("page") Page page, @Param("text") String text);
    List<Receiveraddress> getReceiveraddressById(@Param("userid") Integer userid,@Param("default")Integer isdefault,@Param("id")Integer id);
    int ReceiveraddressCount(@Param("text") String text);
}
